package s13.ch15.ex1;

import java.util.Arrays;
import  java.util.Collection;

import s13.ch15.ex1.model.Car;

public class MyCollections {

	public static void main(String[] args) {
	Car[] cars={};
	cars.add (new Car());
//		Car[] cars={new Car(),new Car()};
//	System.out.println(cars);
//	System.out.println(cars.getClass());
//	for (Car car : cars) {
//		System.out.println(car);
//	}
//	//Car[]cars1=new Car[cars.length+1];
//	Car[] cars1=Arrays.copyOf(cars,cars.length+1);
//	cars1[2]=new Car();
//	for (Car car : cars1) {
//		System.out.println(car);
//	}
//	int[] ints=new int[5];
//	System.out.println(ints);
//	}

}
}